﻿@model IEnumerable<_1_31_2015_SLMSite.Models.CommunicationViewModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table table-striped table-bordered">
    <tr>
        <th>
            Communication Type
        </th>
        <th>
           Message
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @(item.CommunicationTypeDesc)
        </td>
        <td>
            @Html.Raw(item.Message)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.CommunicationId }) |
            @Html.ActionLink("Details", "Details", new { id=item.CommunicationId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.CommunicationId })
        </td>
    </tr>
}

</table>
